<?php 
namespace Common\Model;
use Think\Model\RelationModel;
class YgclWorkModel extends RelationModel{
	protected $_link = array(
			'classtype'=>array(
					'mapping_type'=>self::BELONGS_TO,
					'class_name'  =>'YgclClassType',
					'foreign_key'=>'ctid',
					//'as_fields'=>'title:district',
			),
			'lesson'=>array(
					'mapping_type'=>self::BELONGS_TO,
					'class_name'  =>'YgclLesson',
					'foreign_key'=>'lid',
					//'as_fields'=>'title:district',
			),
			'termtime' => array(
				'mapping_type'=>self::BELONGS_TO,
				'class_name'  =>'YgclTermTime',
				'foreign_key'=>'ttid',
				'as_fields'=>'title:termtime',
			),
	);
}
?>